﻿@model IEnumerable<Solution.Business.Entities.Thongke>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Index</h2>
<table border="1">
    <tr>
        <th><input type="checkbox" name="chkBox" id="chkBox" /></th>
        <th style="width:500px;">Chuyên mục</th>
        <th style="width:100px;">Số bài đã đăng</th>        
    </tr>
    @foreach (var item in Model)
    {
        var ViewCount = item.Count.ToString() + "px";
        <tr>
            <td><input type="checkbox" name="chkBox" id="chkBox1" /></td>
            <td>@item.Transaction.Name</td>            
            <td>
                <div class="viewcount-block" style="width:@ViewCount"><span class="viewcount-text">a</span></div>
                <div class="viewcount-number">@item.Count</div>
            </td>
        </tr>
    }
</table>